package com.example.socket.mapper;

import com.example.socket.model.Seckill;
import com.example.socket.model.SuccessKilled;

import java.util.List;

/**
 * Created with IDEA
 * author:QinWei
 * Date:2019/5/21
 * Time:9:14
 */
public interface SeckillMapper {

    List<Seckill> findAll();

    Seckill findOne(long seckillId);

    long findCount(long seckillId);

    void deleteSeckill(long seckillId);

    void updateSeckill(long seckillId);

    long queryNumber(long seckillId);

    void updateCountSeckill(long seckillId);

    void save(SuccessKilled successKilled);

    int updateSeckillNumber(long seckillId);

    int updateSeckillVersion(long number,long seckillId,int version);
}
